package com.wenchao.jetpackdemo.dataBinding

import android.app.Activity
import android.content.Intent
import android.view.View

/**
 * 【类的描述】介绍一下该类的用途
 *
 * @author zhangwenchao
 * @date 2021-12-25
 */
class DataBindingViewModel {

    fun onOneWayBindingClick(view: View) {
        val context = view.context as Activity
        context.startActivity(Intent(context, OneWayBindingActivity::class.java))
    }

    fun onTwoWayBindingClick(view: View) {
        val context = view.context as Activity
        context.startActivity(Intent(context, TwoWayBindingActivity::class.java))
    }

}